package com.xinchuang.mapper.targetSystem.damage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinchuang.dto.HsCalculateStandardDto;
import com.xinchuang.entity.targetSystem.damage.HurtBasic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 实体类型表主类型（多级） Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2024-04-26
 */
@Mapper
public interface HurtBasicMapper extends BaseMapper<HurtBasic> {
    List<HsCalculateStandardDto> selectEntities(@Param(value = "targetTypeId") String targetTypeId,
                                                @Param(value = "hurtLevel") String hurtLevel,
                                                @Param(value = "destroyLevel") String destroyLevel);

    @Update("update t_hurt_basic set data_status = 1 where id in (${ids})")
    void deleteBatchIdsWithLogic(@Param(value = "ids") String ids);
}
